<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>广告管理</title>
</head>
<link href="js/layui/css/layui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/layui/layui.all.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="js/layui/css/style.css"/>
<script src="js/loginjs/cunchu.js"></script>
<script src="js/advertising.js" type="text/javascript" charset="utf-8"></script>

<link rel="stylesheet" type="text/css" href="../public/bootstrap-fileinput/css/fileinput-rtl.min.css">
<script src="../public/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../public/bootstrap-fileinput/js/fileinput.min.js"></script>
<script src="../public/bootstrap-fileinput/js/locales/zh.js"></script>

<script src="../public/js/shangchuantupian.js"></script>

<body>
    <label class="layui-form-label">类型：</label>
    <div class="layui-input-block">
        <input style="width: 200px;float: left;margin-top: 3px;"  type="text" id="advertising_type" name="advertising_type"
               placeholder="请输入类型查询"
               class="layui-input">
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布时间：
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test1"/>
        </div>
        ~
        <div class="layui-inline"> <!-- 注意：这一层元素并不是必须的 -->
            <input type="text" style="width: 120px;" autocomplete="off" class="layui-input" id="test2"/>
        </div>
        <input class="layui-btn layui-btn-mini " style="width: 70px;height: 36px;margin-left: 15px;" onclick="searchUsers()"
               value="搜索"/>
        <input class="layui-btn layui-btn-mini " style="width: 70px;height: 36px;margin-left: 15px;" onclick="addOpen()"
               value="添加"/>
    </div>


<table id="demo" lay-filter="test"></table>
<script type="text/javascript" id="toolbarDemo">

</script>
<!-- 表格内部自定义模板 -->
<script type="text/html" id="barDemo">
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="sele">查看</a>
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="edit">编辑</a>
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="delete">删除</a>
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="upload">上传</a>
<!--
    {{#  if(d.user_enabled == 0){ }}
    <a class="layui-btn layui-btn-mini  layui-btn-xs layui-btn-danger" lay-event="forbidden">禁用</a>
    {{#  } else { }}
    <a class="layui-btn layui-btn-mini  layui-btn-xs" lay-event="startUsing">启用</a>
    {{#  } }}

-->

</script>
<div id="popUpdateTest" style="display:none;text-align:center;">
    <div style="float: left;">
        <h2>送给此刻奋斗的</h2>
        <h1>-------你-------</h1>
        <div id="demo2" style="width:420px; height:400px;">
            <canvas id="c" height="400" width="400"></canvas>
        </div>
    </div>
    <div>
        <form class="layui-form layui-from-pane" lay-filter="formTest"
              style="width: 600px;float: left;margin-top:20px;text-align:center;">
            <div class="layui-input-inline" style="display: none">
                <label class="layui-form-label">用户编号</label>
                <input style="width: 200px;" type="text" id="advertising_id" name="advertising_id" placeholder="请输入用户编号"
                       class="layui-input">
            </div>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">开始日期</label>
                <input style="width: 200px;" type="text" id="advertising_startTime" name="advertising_startTime"
                       placeholder="请选择开始日期"
                       class="layui-input">
            </div><p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">结束日期</label>
                <input style="width: 200px;" type="text" id="advertising_endTime" name="advertising_endTime"
                       placeholder="请选择结束日期"
                       class="layui-input">
            </div><p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">是否启用</label>
                <select name="advertising_enabled" id="advertising_enabled" lay-verify="required">
                    <option value="-1">请选择</option>
                    <option value="0">0</option>
                    <option value="1">1</option>
                </select>
            </div>
            <p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">类型</label>
                <input style="width: 200px;" type="text" id="advertising_type1" name="advertising_type" placeholder="请输入类型"
                       class="layui-input">
            </div> <p></p>
            <div class="layui-input-inline" style="margin-top: 15px;">
                <label class="layui-form-label">权重</label>
                <input style="width: 200px;" type="text" id="advertising_weight" name="advertising_weight" placeholder="请输入权重"
                       class="layui-input">
            </div>

            <p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">标题</label>
                <input style="width: 200px;" type="text" id="advertising_title" name="advertising_title" placeholder="请输入标题"
                       class="layui-input">
            </div> <p></p>
            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">内容</label>
                <input style="width: 200px;" type="text" id="advertising_content" name="advertising_content"
                       placeholder="请输入内容"
                       class="layui-input">
            </div>
            <p></p>


            <div class="layui-input-inline" style="margin-top: 10px;">
                <label class="layui-form-label">广告链接</label>
                <input style="width: 200px;" type="text" id="advertising_url" name="advertising_url" placeholder="请输入广告链接"
                       class="layui-input">
            </div><p></p>

        </form>
        <button class="layui-btn" style="width: 250px;height: 32px;margin-top: 12px;" onclick="setFormValue()">确认修改
        </button>
    </div>
</div>
<div>

</div>
</div>
    <div id="uploadImage" style="display:none;text-align:center;margin: auto;
		position: absolute;">
        <!-- 上传图片-->
        <div class="card card-info">
            <div class="card-body">
                <input type="file" name="reportFile" id="reportFile" multiple class="file-loading" />
            </div>
        </div>
    </div>
    <div id="popUpdateTest1" style="display:none;text-align:center;margin: auto;
		position: absolute;">
        <div>
            <form class="layui-form layui-from-pane" lay-filter="formTest"
                  style="margin-top:20px;text-align:center;">
                <div class="layui-input-inline" style="display: none">
                    <label class="layui-form-label">用户编号</label>
                    <input style="width: 200px;" readOnly="true" type="text" name="advertising_id" placeholder="请输入用户编号"
                           class="layui-input">
                </div>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">开始日期</label>
                    <input style="width: 200px;" type="text" readOnly="true" name="advertising_startTime"
                           placeholder="请选择开始日期"
                           class="layui-input">
                </div><p></p>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">结束日期</label>
                    <input style="width: 200px;" readOnly="true" type="text" name="advertising_endTime"
                           placeholder="请选择结束日期"
                           class="layui-input">
                </div><p></p>
                <div class="layui-input-inline" readOnly="true" style="margin-top: 10px;">
                    <label class="layui-form-label">是否启用</label>
                    <select name="advertising_enabled" readOnly="true" lay-verify="required">
                        <option value="-1">请选择</option>
                        <option value="0">0</option>
                        <option value="1">1</option>
                    </select>
                </div>
                <p></p>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">类型</label>
                    <input style="width: 200px;" readOnly="true" type="text" name="advertising_type" placeholder="请输入类型"
                           class="layui-input">
                </div> <p></p>
                <div class="layui-input-inline" style="margin-top: 15px;">
                    <label class="layui-form-label">权重</label>
                    <input style="width: 200px;" readOnly="true" type="text" name="advertising_weight" placeholder="请输入权重"
                           class="layui-input">
                </div>

                <p></p>
                <div class="layui-input-inline" readOnly="true" style="margin-top: 10px;">
                    <label class="layui-form-label">标题</label>
                    <input style="width: 200px;" type="text" readOnly="true" name="advertising_title" placeholder="请输入标题"
                           class="layui-input">
                </div> <p></p>
                <div class="layui-input-inline" readOnly="true" style="margin-top: 10px;">
                    <label class="layui-form-label">内容</label>
                    <input style="width: 200px;" type="text" readOnly="true" name="advertising_content"
                           placeholder="请输入内容"
                           class="layui-input">
                </div>
                <p></p>


                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">广告链接</label>
                    <input style="width: 200px;" type="text" readOnly="true" name="advertising_url" placeholder="请输入广告链接"
                           class="layui-input">
                </div><p></p>
            </form>
        </div>
    </div>
    </div>
    <div id="popUpdateTest3" style="display:none;text-align:center;">
        <div>
            <form class="layui-form layui-from-pane" lay-filter="formTest"
                  style="margin-top:20px;text-align:center;">

                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">开始日期</label>
                    <input style="width: 200px;" type="text" id="advertising_startTime2" name="advertising_startTime"
                           placeholder="请选择开始日期"
                           class="layui-input">
                </div>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">结束日期</label>
                    <input style="width: 200px;" id="advertising_endTime2" type="text" name="advertising_endTime"
                           placeholder="请选择结束日期"
                           class="layui-input">
                </div>
                <p></p>
                <div class="layui-input-inline"  style="width: 200px" style="margin-top: 10px;">
                    <label class="layui-form-label">是否启用</label>
                    <select name="city"id="advertising_enabled2" lay-verify="required">
                        <option value="-1">请选择</option>
                        <option value="0">0</option>
                        <option value="1">1</option>
                    </select>
                </div>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">类型</label>
                    <input style="width: 200px;" id="advertising_type2" type="text" name="advertising_type" placeholder="请输入类型"
                           class="layui-input">
                </div>
                <p></p>
                <div class="layui-input-inline" style="margin-top: 15px;">
                    <label class="layui-form-label">权重</label>
                    <input style="width: 200px;" type="text" id="advertising_weight2" name="advertising_weight" placeholder="请输入权重"
                           class="layui-input">
                </div>
                <div class="layui-input-inline"  style="margin-top: 10px;">
                    <label class="layui-form-label">标题</label>
                    <input style="width: 200px;" type="text" id="advertising_title2" name="advertising_title" placeholder="请输入标题"
                           class="layui-input">
                </div>
                <p></p>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">内容</label>
                    <input style="width: 200px;" type="text" id="advertising_content2" name="advertising_content"
                           placeholder="请输入内容"
                           class="layui-input">
                </div>
                <div class="layui-input-inline" style="margin-top: 10px;">
                    <label class="layui-form-label">广告链接</label>
                    <input style="width: 200px;" type="text" id="advertising_url2" name="advertising_url" placeholder="请输入广告链接"
                           class="layui-input">
                </div>
                <p></p>

            </form>

            <button class="layui-btn" style="width: 150px;height: 32px;margin-top: 12px;" onclick="addAdv()">确认添加
            </button>
        </div>
    </div>
    </div>
<script src="js/meiguihua.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>
